package com.peak.distribution.manager.agent;

import java.util.List;

import com.peak.distribution.entity.agent.DisAgentSales;
import com.peak.spring.boot.api.manager.BaseManager;

public interface DisAgentSalesManager extends BaseManager<DisAgentSales> {

	/**
	 * 根据代理商，取出代理商的记录
	 * @param agentId
	 * @return
	 */
	DisAgentSales getByAgentId(Integer agentId);
	
	/**
	 * 根据团队找销售记录
	 * @param teamId
	 * @return
	 */
	DisAgentSales getByTeamId(Integer teamId);
	
	/**
	 * 根据代理商，找到他所有的团队的销售记录
	 * @param agentId
	 * @return
	 */
	List<DisAgentSales> getTeamSalesByAgentId(Integer agentId);
}
